package com.dries.portal.module.chat.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description: 消息内容类型
 * @Author ZSY
 * @createTime 2020/8/11 14:04
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum MsgType {

    TEXT_MSG(101, "文本消息"),
    IMAGE_MSG(102, "图片消息"),
    VOICE_MSG(103, "语音消息"),
    VIDEO_MSG(104, "视频消息"),
    ADDRESS_MSG(105, "发送地理位置消息"),
    RED_PACKAGE_MSG(106, "红包消息"),
    FILE_MSG(107, "发送文件消息"),
    HINT_MSG(108, "发送提示消息"),
    DIY_MSG(110, "发送第三方自定义消息");

    @EnumValue
    private Integer code;
    private String description;

    @JsonValue
    public String getDescription() {
        return description;
    }

}
